{% extends "base.html" %}
{% block title %}Login-in 登录{% endblock %}
{% block content %}
<h1>Log-in 登录</h1>
{% if form.errors %}
<p>Your username and password didn't match.Please try again.你的用户名和密码不正确，请重试确认。</p>
{% else %}
<p>Please, use the follow form to Log-in（请使用以下表格登录）:</p>
{% endif %}
<div class="login-form">
    <form action="{% url 'login' %}" method="post">
    {{ form.as_p }}
    {% csrf_token %}
    <input type="hidden" name="next" value="{{ next }}" />
    <p><input type="submit" value="Login-in 登录" /></p>
    </form>
</div>
{% endblock %}